package com.frxuexi.lib_base.utils

import java.util.concurrent.ConcurrentHashMap

object LiveDataBus {
    val map=ConcurrentHashMap<String,SignLiveData<Any>>()

    fun <T> with(key:String,type:Class<T>):SignLiveData<T>{
        return map.getOrPut(key){SignLiveData()} as SignLiveData<T>
    }
}